import Vue from 'vue'
import Router from 'vue-router'
import artical from '@/components/artical'
import videos from '@/components/videos'
import ask from '@/components/ask'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/ask'
    },
    {
      path: '/ask',
      name: 'ask',
      component: ask
    },
    {
      path:'/videos',
      name:'videos',
      component:videos
    },
    {
      path: '/artical',
      name: 'artical',
      component: artical
    }
  ]
})
